package org.hxyjs.dao;

import org.hxyjs.entity.News;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface NewsDao {
    public List<News>  getAllNewss()  throws Exception;
    public News  getNewsByNeno(String neno)  throws Exception;
    //增删改的返回值都是整数
    Integer deleteNewsByNeno(String neno)  throws Exception;
    Integer updateNewsByNeno(News news)  throws Exception;
    Integer addNewsByNeno(News news)  throws Exception;
    public List<News>  getNewsByPage(PageInfo pageInfo)  throws Exception;

}
